cmake_minimum_required(VERSION 3.10)

project(dshSmoothU2d)

# specify the C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# add the executable
add_executable(${PROJECT_NAME} dshSmoothU2d.cxx)

# add the library
# list(APPEND EXTRA_LIBS u2d)
list(APPEND EXTRA_LIBS readFile)
list(APPEND EXTRA_LIBS newVar)
list(APPEND EXTRA_LIBS delVar)
list(APPEND EXTRA_LIBS initVars)
list(APPEND EXTRA_LIBS diff2d)
list(APPEND EXTRA_LIBS fdmU2d)
target_link_libraries(${PROJECT_NAME} PUBLIC ${EXTRA_LIBS})

target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR})

# add the binary tree to the search path for include files
# so that we will find TutorialConfig.h
target_include_directories(${PROJECT_NAME} PUBLIC
                           "${PROJECT_BINARY_DIR}"
                           )

install(TARGETS ${PROJECT_NAME} DESTINATION bin/solvers)
